<?php
/**
 * @author     ：lhw
 * @date       ：Created in 2019/8/4 11:19
 */

namespace app\api\service;

use app\api\model\Pharmacy as PharmacyModel;

class PharmacyService extends BaseService
{
    public static function checkregister($login){
        $pharmacy = PharmacyModel::where(['login' => $login])->select();
        if(sizeof($pharmacy) != 0){
            return false;
        }
        else {
            return true;
        }
    }

}